.class Lcom/waiqin365/lightapp/dailyreport/ad;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 10

    const/4 v9, 0x1

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    const v2, 0x7f0803e3

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->getString(I)Ljava/lang/String;

    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->b:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->b:Ljava/lang/String;

    :cond_0
    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_8

    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->g:Lcom/waiqin365/lightapp/dailyreport/c/g;

    if-eqz v1, :cond_3

    new-instance v3, Landroid/content/Intent;

    invoke-direct {v3}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "newinfo"

    invoke-virtual {v3, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v4, v1, Lcom/waiqin365/lightapp/dailyreport/c/g;->r:Ljava/util/ArrayList;

    if-eqz v4, :cond_2

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->g(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/squareup/picasso/Picasso;->with(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;

    move-result-object v1

    invoke-virtual {v1}, Lcom/squareup/picasso/Picasso;->getCachePath()Ljava/lang/String;

    move-result-object v5

    const/4 v1, 0x0

    move v2, v1

    :goto_1
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v2, v1, :cond_2

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/c/k;

    iget-object v6, v1, Lcom/waiqin365/lightapp/dailyreport/c/k;->c:Ljava/lang/String;

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/c/k;

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/k;->c:Ljava/lang/String;

    const-string/jumbo v7, "/"

    invoke-virtual {v1, v7}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-virtual {v6, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    new-instance v7, Ljava/io/File;

    invoke-direct {v7, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7}, Ljava/io/File;->exists()Z

    move-result v7

    if-nez v7, :cond_1

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v8, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v8}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->h(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v8

    invoke-virtual {v8}, Lcom/waiqin365/lightapp/view/ImagePreview;->f()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v6}, Lcom/fiberhome/gaea/client/d/c;->e(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/c/k;

    iput-object v6, v1, Lcom/waiqin365/lightapp/dailyreport/c/k;->e:Ljava/lang/String;

    :cond_1
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_1

    :cond_2
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    const/16 v2, 0x1e

    invoke-virtual {v1, v2, v3}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->setResult(ILandroid/content/Intent;)V

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->h(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/ImagePreview;->f()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_4

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/o;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/o;-><init>()V

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->f:Lcom/waiqin365/lightapp/kehu/b/o;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/b/o;->a:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/o;->a:Ljava/lang/String;

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->f:Lcom/waiqin365/lightapp/kehu/b/o;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/b/o;->b:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/o;->b:Ljava/lang/String;

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->f:Lcom/waiqin365/lightapp/kehu/b/o;

    iget-object v2, v2, Lcom/waiqin365/lightapp/kehu/b/o;->d:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/o;->d:Ljava/lang/String;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->f:Lcom/waiqin365/lightapp/kehu/b/o;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/o;->e:Ljava/lang/String;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/o;->e:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->h(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/ImagePreview;->a(Lcom/waiqin365/lightapp/kehu/b/o;)V

    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v1, "android.intent.action.RUN"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    const-class v2, Lcom/fiberhome/upload/UpLoadService;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    :cond_4
    const-string/jumbo v0, "1"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->i(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)Lcom/waiqin365/lightapp/dailyreport/c/j;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->dismissProgressDialog()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    const v2, 0x7f0803e4

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    :cond_5
    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v0, v9}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->a(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;Z)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->j(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->back()V

    goto/16 :goto_0

    :cond_6
    const-string/jumbo v0, "5"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->i(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)Lcom/waiqin365/lightapp/dailyreport/c/j;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->dismissProgressDialog()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    const v2, 0x7f0803e5

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto :goto_2

    :cond_7
    const-string/jumbo v0, "6"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->i(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)Lcom/waiqin365/lightapp/dailyreport/c/j;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->dismissProgressDialog()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    const v2, 0x7f0803e6

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto :goto_2

    :cond_8
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->dismissProgressDialog()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->k(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)Landroid/content/Context;

    move-result-object v1

    iget v0, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ah;->c:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/ad;->a:Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;->l(Lcom/waiqin365/lightapp/dailyreport/NewDailyTempletActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v9}, Landroid/widget/TextView;->setEnabled(Z)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x6
        :pswitch_0
    .end packed-switch
.end method
